<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			// let a = {n:1};
			// a.x = 1;
			// console.log(JSON.stringify(a));
			// // {"n":1,"x":1}
			
			
			let a = {n:1};
			let b = a;
			a.x = a = {n:2};
			console.log(JSON.stringify(a));
			console.log(a.x);
			console.log(JSON.stringify(b));
			console.log(b.x);
		</script>
	</body>
</html>
